package com.payment.system.domain.alipay;


import com.payment.common.utils.PropertiesUtil;

/**
 * 支付宝支付配置信息
 * 
 * @author fuzhili
 * 
 */
public class AliAppPayConfig {

	private static AliAppPayConfig aliAppPayConfig = new AliAppPayConfig();

	private AliAppPayConfig() {
		this.appId =PropertiesUtil.getProperty("zfbAppId");
		this.charset = PropertiesUtil.getProperty("zfbCharset");
		this.notifyUrl =PropertiesUtil.getProperty("zfbNotifyUrl");
		this.privateKey =PropertiesUtil.getProperty("zfbPrivateKey");
		this.publicKey = PropertiesUtil.getProperty("zfbPublicKey");
	}

	public static AliAppPayConfig instance() {
		return aliAppPayConfig;
	}

	/** 支付宝分配给开发者的应用ID */
	private String appId;
	/** 接口名称 */
	private String service;
	/** 参数编码字符集 */
	private String charset;
	/** 服务器异步通知页面路径 */
	private String notifyUrl;
	/** 私钥 */
	private String privateKey;
	/** 公钥 */
	private String publicKey;

	public static AliAppPayConfig getAliAppPayConfig() {
		return aliAppPayConfig;
	}

	public static void setAliAppPayConfig(AliAppPayConfig aliAppPayConfig) {
		AliAppPayConfig.aliAppPayConfig = aliAppPayConfig;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getService() {
		return service;
	}

	public void setService(String service) {
		this.service = service;
	}

	public String getCharset() {
		return charset;
	}

	public void setCharset(String charset) {
		this.charset = charset;
	}

	public String getNotifyUrl() {
		return notifyUrl;
	}

	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}

	public String getPrivateKey() {
		return privateKey;
	}

	public void setPrivateKey(String privateKey) {
		this.privateKey = privateKey;
	}

	public String getPublicKey() {
		return publicKey;
	}

	public void setPublicKey(String publicKey) {
		this.publicKey = publicKey;
	}

}
